/**
  ******************************************************************************
  * @author     Chris
  * @since      2023/10/6 16:50
  *
  * @file       hd_mpu6050.h
  * @brief      Head file of Xxx Hardware Driver.
  *
  * @note       This file contains the hardware driver's function declaration 
  *             for the Xxx.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2023/10/6     Chris        the first version
  *
  ******************************************************************************
  */

#ifndef JXTECH101_I2CSOFTWAREMPU6050_HD_MPU6050_H
#define JXTECH101_I2CSOFTWAREMPU6050_HD_MPU6050_H

#include "stm32g4xx.h"


typedef struct {
    int16_t accX;
    int16_t accY;
    int16_t accZ;
    int16_t temp;
    int16_t gyroX;
    int16_t gyroY;
    int16_t gyroZ;
} HD_MPU6050_DataTypeDef;

void HD_MPU6050_Init(void);


uint8_t HD_MPU6050_GetID(void);

void HD_MPU6050_GetData(HD_MPU6050_DataTypeDef *MPU6050_DataStruct);

#endif // JXTECH101_I2CSOFTWAREMPU6050_HD_MPU6050_H
